package com.zg.assistant.req;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 图像识别请求类
 * @author zg
 */
@Data
public class ImageRecognitionReq {
    /**
     * 图片URL
     */
    @NotBlank(message = "图片URL不能为空")
    private String imageUrl;

    /**
     * 表单字段映射
     * 例如：[{"name": "发运单位", "label": "FYDW"}, {"name": "合同号", "label": "HTH"}]
     */
    @NotEmpty(message = "表单字段映射不能为空")
    private List<FormFieldReq> formFields;

}
